<div id="content">
     <div><span class="title_hoithao"><span class="style5"><?php echo $this->khCurrent['khoahoc_name'];?></span><br />
      </span><?php 
       	$date=new Zend_Date($this->khCurrent['khoahoc_datecreate']);
      	echo $date->getDate('vi_VN')->toString(Zend_Date::DATETIME_LONG)?><span class="title_hoithao"><br />
       </span></div>
     <div style="border-bottom:2px dotted #CCCCCC; padding-bottom:10px;">
       <p><span class="style5"><span class="title_hoithao01"><a href="<?php $this->khCurrent['khoahoc_file']?>" class="media" ></a></span></span><span class="noi_dung_khoa_hoc"><?php echo $this->khCurrent['khoahoc_summary']?> </span></p>
       <p><?php echo $this->khCurrent['khoahoc_info']?>
       </p>
       <?php
	$arrayColor=array(  '#e7627c'=>'#ef97a9',
         				'#eeb37a'=>'#f4cda7',
         				'#b36fb3'=>'#cda0cd',
         				'#aaac70'=>'#c7c8a1'
         				  );
	foreach($this->otherArr as $row){
		$random = array_rand($arrayColor);
    	?>
     <div style="border: 1px dotted #999999; padding:10px 10px 10px 10px;">
       <table width="100%" border="0" cellpadding="0" cellspacing="0">
         <tr>
           <td colspan="3"><span class="title_hoithao01"><?php echo $row['khoahoc_name']; ?></span><br />
               <table width="99%" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                   <td><span class="style4"><?php echo $row['khoahoc_summary']; ?> </span>(<span class="chi_tiet"><a href="<?php $requestHttp = new  Zend_Controller_Request_Http();$params=$requestHttp->getParams ();
                   echo $requestHttp->getBaseUrl ().'?pid='.$params['pid'].'&id='.$row['khoahoc_id'];?>">xem thêm</a></span> <span class="chi_tiet">»</span>)</td>
                 </tr>
             </table></td>
         </tr>
         <?php 
         if (count($row['lichhoc'])>0) {?>
         <tr>
           <td width="37%" height="29" bgcolor="<?php echo $random; ?>" class="noi_dung_hoithao">Ngày khai giảng</td>
           <td height="29" colspan="2" align="right" bgcolor="<?php echo $random; ?>" class="noi_dung_hoithao">Địa điểm ( download sơ đồ đừơng đi, khóa học)</td>
         </tr>
         	<?php foreach($row['lichhoc'] as $rowLH) {?>
		         <tr>
		           <td height="29" bgcolor="<?php echo $arrayColor[$random]; ?>" class="noi_dung_hoithao"><?php 
		            $date=new Zend_Date($rowLH['lichhoc_date']);
		            echo $date->getDate('vi_VN')->toString('l','php').', lúc '.
		            	 $date->getDate('vi_VN')->toString('G:i','php').', ngày '.
		            	 $date->getDate('vi_VN')->toString('d/m/Y','php');
		           ?></td>
		           <td width="48%" height="29" align="right" bgcolor="<?php echo $arrayColor[$random]; ?>" class="noi_dung_hoithao"><?php echo $rowLH['lichhoc_place'];?></td>
		           <td width="15%" align="right" bgcolor="<?php echo $arrayColor[$random]; ?>" class="noi_dung_hoithao"><a class="thickbox" onclick="$('.lichhoc').attr('value', '<?php echo $rowLH['lichhoc_id'];?>');" href="#TB_inline?height=50&width=370&inlineId=form_dk"><img src="<?php echo JS_PATH;?>/tpt/images/download.gif" width="90" height="31" vspace="5" border="0" /></a></td>
		         </tr>
		         <?php }?>
         <?php }?>
       </table>
     </div>
 <?php }?>  
       <div style="height:"></div>
       <div style="height:10px;"></div>
       <div></div>
     </div>
     <?php
     if(count($this->commentList)>0){ 
     foreach($this->commentList as $row){?>
     <div style=" border-bottom:2px dotted #CCCCCC; padding-bottom:10px;"><span class="style3"><?php echo $row['comment_name'].', '.$row['comment_job'].': ';?></span><br />
         <em>“<?php echo $row['comment_content'];?>”</em></div>
     <br />
  	<?php }}?>
     <form action="<?php $requestHttp = new  Zend_Controller_Request_Http();
     					echo $requestHttp->getBaseUrl ().'/index/index/dangki'?>" name="myform" id="myform" method="post">
       <table style="border:2px dotted #999999;" width="100%" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
         <tr>
           <td><table width="100%" border="0" cellpadding="0" cellspacing="10" bordercolor="#CCCCCC">
               <tr>
                 <td height="30" colspan="2" bgcolor="#E7627C" class="title_hoithao02 style2">&nbsp;ĐĂNG KÝ</td>
               </tr>
               <tr>
                 <td align="left" valign="top">Thời gian&Địa điểm:</td>
                 <td><select name="lichhoc" id="lichhoc" style="width:300px">
                 <?php foreach($this->khCurrent['lichhoc'] as $row){?>
                     <option value="<?php echo $row['lichhoc_id'];?>"><?php
	                    $date=new Zend_Date($row['lichhoc_date']);
			            echo $date->getDate('vi_VN')->toString('l','php').', lúc '.
			            	 $date->getDate('vi_VN')->toString('G:i','php').', ngày '.
			            	 $date->getDate('vi_VN')->toString('d/m/Y','php').' tại '.
			            	 $row['lichhoc_place'];
		           ?></option><?php }?>
                 </select></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Họ và tên:</td>
                 <td width="86%"><input name="name" type="text" class="textfile_lichhoithao" id="name" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Email:</td>
                 <td><input name="email" type="text" class="textfile_lichhoithao" id="email" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Phone: </td>
                 <td><input name="phone" type="text" class="textfile_lichhoithao" id="phone" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">&nbsp;</td>
                 <td><img src="<?php echo JS_PATH;?>/tpt/images/Dky.jpg" width="101" height="32" onclick="document.myform.submit();"/></td>
               </tr>
           </table></td>
         </tr>
       </table>
       <input name="type" id="type" type="hidden" value="page" />
       <input name="url" id="url" type="hidden" value="<?php echo 'http://'.$requestHttp->getHttpHost ().$requestHttp->getRequestUri ();?>"/>
       </form><br>
       <form action="<?php echo $requestHttp->getBaseUrl ().'/index/index/comment';?>" name="comment_form" id="comment_form" method="post">
       <table style="border:2px dotted #999999;" width="100%" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
         <tr>
           <td><table width="100%" border="0" cellpadding="0" cellspacing="10" bordercolor="#CCCCCC">
               <tr>
                 <td height="30" colspan="2" bgcolor="#E7627C" class="title_hoithao02 style2">&nbsp;Y KIEN CUA BAN</td>
               </tr>
               <tr>
                 <td align="left" valign="top">Họ và tên:</td>
                 <td width="86%"><input name="comment_name" type="text" id="comment_name" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Nghe nghiep</td>
                 <td width="86%"><input name="comment_job" type="text" id="comment_job" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Email:</td>
                 <td><input name="comment_email" type="text" id="comment_email" size="40" /></td>
               </tr>
               <tr>
                 <td align="left" valign="top">Noi dung </td>
                 <td><textarea name="comment_content" id="textarea" cols="45" rows="5"></textarea></td>
               </tr>
               <tr>
                 <td align="left" valign="top">&nbsp;</td>
                 <td><input type="submit" value="Goi y kien"/></td>
               </tr>
           </table></td>
         </tr>
       </table>
       <input name="comment_khoahoc_id" id="comment_khoahoc_id" type="hidden" value="<?php echo $this->khCurrent['khoahoc_id'];?>"/>
       <input name="url" id="url" type="hidden" value="<?php echo 'http://'.$requestHttp->getHttpHost ().$requestHttp->getRequestUri ();?>"/>
       </form>
     </div>
     <div>
       <div align="center"><img src="<?php echo JS_PATH;?>/tpt/images/dangky.jpg" width="732" height="171" /></div>
     </div>
     <p><br />
     </p>
   </div>
   <div id="form_dk" style="display: none">
 	<div id="dk_content">
		         <form action="<?php echo $requestHttp->getBaseUrl ().'/index/index/dangki';?>" name="formDK" id="formDK" method="post">
					<table>
					      <tr>
					        <td width="42%" class="style1">Ho va Tên <span>&nbsp;*</span></td>
					        <td width="58%"><label>
					          <input name="name" type="text" id="name" size="25" />
					        </label></td>
					      </tr>
					      <tr>
					        <td class="style1">Email <span>&nbsp;*</span></td>
					        <td class="style1"><input name="email" id="email" type="text" size="25" /></td>
					      </tr>
					      <tr>
					        <td class="style1">Phone <span>&nbsp;*</span></td>
					        <td class="style1"><input name="phone" id="phone" type="text" size="25" /></td>
					      </tr>
					      <tr>
					        <td class="style1">&nbsp;</td>
					        <td class="style1"><input type="submit" value="Dang ki"/></td>
					      </tr>
					</table>
					<input name="lichhoc" class="lichhoc" type="hidden" value=""/>
					</form>
	</div>				
</div>
 <script language="JavaScript" type="text/javascript">
    $(document).ready(function()
    {
        var options = {
            target:        '#dk_content',   // target element(s) to be updated with server response
            beforeSubmit:  showRequest,
            url: '<?php echo $requestHttp->getBaseUrl ().'/index/index/dangki';?>',
            type: 'post'  // pre-submit callback
        };

        $("#formDK").validate({
            rules:
                {
                name:
                    {
                    required: true
                },
                email:
                    {
                    required: true,
                    email: true
                },
                phone:
                	{
                	required: true
            	}
                },
            messages:
                {
                name:
                    {
                	required: "<br>Vui long nhap ten"
                },
               email:
                    {
                    required: "<br>Vui long nhap email",
                    email: "<br>Vui long nhap dung dia chi email"
                },
                phone:
                	{
            	required: "<br>Vui long nhap so dien thoai"
            	}
              },
            submitHandler: function () {
            	 $("#formDK").ajaxSubmit(options);
                return false;
            }
        });
    });
    // pre-submit callback
    function showRequest(formData, jqForm, options) {

        var queryString = $.param(formData);
        return true;
    }
</script>